package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.model.BaseDO;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户表
 *
 * @author syw
 * @since 2023-06-12
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "discount_code")
public class DiscountCodeDO extends BaseDO {


    /**
     * 优惠价格
     */
    @Comment("优惠价格")
    private Double discountPrice;

    /**
     * 优惠码
     */
    @Comment("优惠码")
    private String discountCode;

    /**
     * 账号信息
     */
    @Comment("账号信息")
    private String accountInfo;

    /**
     * 所属人名称
     */
    @Comment("所属人名称")
    private String owner;


    /**
     * 是否有效
     */
    @Comment("是否有效")
    private Boolean isValid;


    @Comment("积分比例")
    private Double pointScale;

    @Comment("使用次数")
    private Integer useTimes;


}
